|
Foxit PDF SDK
|
Public Member Functions | |
| def | TaggedPDF (doc, is_fix) |
| Constructor. More... | |
| def | TaggedPDF (other) |
| Constructor, with another tagged PDF object. More... | |
| def | CanTagDocument () |
| Check whether the current PDF document can be tagged. More... | |
| def | CanTagFormFields () |
| Check whether the form fields in the current PDF document can be auto tagged. More... | |
| def | GetCurrentFigureElementIndex () |
| Get current figure element index. More... | |
| def | GetFigureAlternateText (figure_index) |
| Get the alternate text of the figure. More... | |
| def | GetFigureCount () |
| Get the count of figures in tagged document, excluding the decorative figures. More... | |
| def | GetFigurePageIndex (figure_index) |
| Get the figure page index by the figure index. More... | |
| def | GetFigureRect (figure_index) |
| Get the rectangle of figure. More... | |
| def | GetNextFigureData () |
| Get next figure data. More... | |
| def | GetPrevFigureData () |
| Get previous figure data. More... | |
| def | HasFigures () |
| Check whether the document has figures. More... | |
| def | IsAlreadyTagged () |
| Check whether the current PDF document is already tagged. More... | |
| def | IsEmpty () |
| Check whether current object is empty or not. More... | |
| def | RemoveTags () |
| Remove the accessibility tag tree tree for the current PDF document. More... | |
| def | SaveFigureData () |
| Save figure data. More... | |
| def | SetAsDecorativeFigure (figure_index) |
| Decorate the figure.The decorative figure can not set alternate text. More... | |
| def | SetCallback (callback) |
| def | SetCurrentFigureDataInfo (is_decorative, alternate_text) |
| Set current figure data info. More... | |
| def | SetFigureAlternateText (figure_index, alternate_text) |
| Set figure alternate text. More... | |
| def | StartTagDocument (pause, report_callback, callback) |
| Start to auto tag the given PDF document with specified tagged settings. More... | |
| def | TagFormFields () |
| Tag form fields in the current PDF document. More... | |
This class represents settings for a tagged PDF document.The tagged PDF means that only tagging information for PDF structure here. Before using any class or methods in this module, please ensure Foxit PDF SDK has been initialized successfully by function FoxitPDFSDKPython2.Library.Initialize with a key including "Accessibility" module.
| def FoxitPDFSDKPython2.TaggedPDF.TaggedPDF | ( | doc, | |
| is_fix | |||
| ) |
Constructor.
| [in] | doc | A valid PDF document object to be tagged. |
| [in] | is_fix | Whether this tagged PDF is used for fix operation. If true, figure data methods will use fix alternate text; if false, they will use no-fix alternate text. Default value: false. |
This constructor is to construct a tagged PDF object with specified settings.
| def FoxitPDFSDKPython2.TaggedPDF.TaggedPDF | ( | other | ) |
Constructor, with another tagged PDF object.
| [in] | other | Another tagged PDF object. |
| def FoxitPDFSDKPython2.TaggedPDF.CanTagDocument | ( | ) |
Check whether the current PDF document can be tagged.
| def FoxitPDFSDKPython2.TaggedPDF.CanTagFormFields | ( | ) |
Check whether the form fields in the current PDF document can be auto tagged.
The function is only used for a tagged PDF document. Please call function FoxitPDFSDKPython2.PDFDoc.IsTaggedPDF to check current PDF document whether is a tagged PDF document.
| def FoxitPDFSDKPython2.TaggedPDF.GetCurrentFigureElementIndex | ( | ) |
Get current figure element index.
| def FoxitPDFSDKPython2.TaggedPDF.GetFigureAlternateText | ( | figure_index | ) |
Get the alternate text of the figure.
The alternate text is the human-readable text, the PDF documents can be enhanced by providing alternate text for images, formulas, or other items that do not translate naturally into text. The function is only used for a tagged PDF document. Please call function FoxitPDFSDKPython2.PDFDoc.IsTaggedPDF to check current PDF document whether is a tagged PDF document.
| [in] | figure_index | The index of figure. Valid range: from 0 to (count-1). count is returned by function FoxitPDFSDKPython2.TaggedPDF.GetFigureCount . |
| def FoxitPDFSDKPython2.TaggedPDF.GetFigureCount | ( | ) |
Get the count of figures in tagged document, excluding the decorative figures.
The function is only used for a tagged PDF document. Please call function FoxitPDFSDKPython2.PDFDoc.IsTaggedPDF to check current PDF document whether is a tagged PDF document.
| def FoxitPDFSDKPython2.TaggedPDF.GetFigurePageIndex | ( | figure_index | ) |
Get the figure page index by the figure index.
The function is only used for a tagged PDF document. Please call function FoxitPDFSDKPython2.PDFDoc.IsTaggedPDF to check current PDF document whether is a tagged PDF document.
| [in] | figure_index | The index of figure. Valid range: from 0 to (count-1). count is returned by function FoxitPDFSDKPython2.TaggedPDF.GetFigureCount . |
| def FoxitPDFSDKPython2.TaggedPDF.GetFigureRect | ( | figure_index | ) |
Get the rectangle of figure.
The function is only used for a tagged PDF document. Please call function FoxitPDFSDKPython2.PDFDoc.IsTaggedPDF to check current PDF document whether is a tagged PDF document.
| [in] | figure_index | The index of figure. Valid range: from 0 to (count-1). count is returned by function FoxitPDFSDKPython2.TaggedPDF.GetFigureCount . |
| def FoxitPDFSDKPython2.TaggedPDF.GetNextFigureData | ( | ) |
Get next figure data.
| def FoxitPDFSDKPython2.TaggedPDF.GetPrevFigureData | ( | ) |
Get previous figure data.
| def FoxitPDFSDKPython2.TaggedPDF.HasFigures | ( | ) |
Check whether the document has figures.
| def FoxitPDFSDKPython2.TaggedPDF.IsAlreadyTagged | ( | ) |
Check whether the current PDF document is already tagged.
| def FoxitPDFSDKPython2.TaggedPDF.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
| def FoxitPDFSDKPython2.TaggedPDF.RemoveTags | ( | ) |
Remove the accessibility tag tree tree for the current PDF document.
This method releases the accessibility-side tag tree/cache associated with the document.
| def FoxitPDFSDKPython2.TaggedPDF.SaveFigureData | ( | ) |
Save figure data.
| def FoxitPDFSDKPython2.TaggedPDF.SetAsDecorativeFigure | ( | figure_index | ) |
Decorate the figure.The decorative figure can not set alternate text.
The function is only used for a tagged PDF document. Please call function FoxitPDFSDKPython2.PDFDoc.IsTaggedPDF to check current PDF document whether is a tagged PDF document.
| [in] | figure_index | The index of figure. Valid range: from 0 to (count-1). count is returned by function FoxitPDFSDKPython2.TaggedPDF.GetFigureCount . |
| def FoxitPDFSDKPython2.TaggedPDF.SetCallback | ( | callback | ) |
If this function is not called, that means no callback will be used.
| [in] | callback | A TaggedPDFCallback object which is implemented by user. User can change some information/data during tagged PDF document by this callback. Please ensure that the callback object keeps valid until the life-cycle of current tagged PDF object ends. If this is null, that means to use default information/data. |
| def FoxitPDFSDKPython2.TaggedPDF.SetCurrentFigureDataInfo | ( | is_decorative, | |
| alternate_text | |||
| ) |
Set current figure data info.
| [in] | is_decorative | Whether the figure is decorative. |
| [in] | alternate_text | The alternate text. |
| def FoxitPDFSDKPython2.TaggedPDF.SetFigureAlternateText | ( | figure_index, | |
| alternate_text | |||
| ) |
Set figure alternate text.
The alternate text is the human-readable text, the PDF documents can be enhanced by providing alternate text for images, formulas, or other items that do not translate naturally into text. The function is only used for a tagged PDF document. Please call function FoxitPDFSDKPython2.PDFDoc.IsTaggedPDF to check current PDF document whether is a tagged PDF document.
| [in] | figure_index | The index of figure. Valid range: from 0 to (count-1). count is returned by function FoxitPDFSDKPython2.TaggedPDF.GetFigureCount . |
| [in] | alternate_text | The alternative descriptions text. |
| def FoxitPDFSDKPython2.TaggedPDF.StartTagDocument | ( | pause, | |
| report_callback, | |||
| callback | |||
| ) |
Start to auto tag the given PDF document with specified tagged settings.
If user wants to get specific tag results during the tagging document process, please pass a valid report_callback and/or callback parameter to this function.
| [in] | pause | Pause object which decides if the auto tagging process needs to be paused. This can be null which means not to pause during the tagging process. If this is not null, it should be a valid pause object implemented by user. Default value: null. |
| [in] | report_callback | A FoxitPDFSDKPython2.StreamCallback object used to receive the generated auto tag report stream. This can be null which means not to output the report. If this is not null, it should be a valid stream callback object implemented by user. Default value: null. |
| [in] | callback | An FoxitPDFSDKPython2.AutoTagProviderCallback object which is implemented by user. User can provide the localized report text during tagged PDF document by this callback. Please ensure that the callback object keeps valid until the life-cycle of current tagged PDF object ends. If this is null, that means to use default report text. |
| def FoxitPDFSDKPython2.TaggedPDF.TagFormFields | ( | ) |
Tag form fields in the current PDF document.
The function is only used for a tagged PDF document. Please call function FoxitPDFSDKPython2.PDFDoc.IsTaggedPDF to check current PDF document whether is a tagged PDF document.